package view;

import graphics.engine.ProgramShader;

import javax.media.opengl.GLAutoDrawable;

import model.BaseModel;

public abstract class BaseView 
{
	private BaseModel model;
	protected boolean hasChanged = true;
	
	public BaseView(BaseModel model)
	{
		this.model = model;
	}
	
	public abstract void update();
	
	public void Draw(GLAutoDrawable drawable, ProgramShader programShader)
	{
	
	}
	
	public BaseModel getModel() {
		return model;
	}
	
	public boolean hasChanged()
	{
		return this.hasChanged;
	}
	
	public void setHasChanged(boolean value)
	{
		this.hasChanged = value;
	}
}
